package com.hp.search_service.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * 包装客户端搜索的内容
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Search {

    //关键字
    private String keyword;
    //当前页
    private Integer current = 1;
    //页条数
    private Integer pageSize = 10;
    //排序字段名
    private String sortBy;
    //排序方式 desc asc
    private String sortType = "ASC";
    //过滤的参数
    private Map<String,String> specs;
}
